// 导入request.js请求工具
import request from '@/utils/request.js'
// 分类管理相关接口

// 获取分类page的接口
export const getClassifyPage = (params) => {
    return request.get('/category/page', {
        params
    })
}

// 修改分类的接口
export const editClassifyApi = (ClassifyData) => {
    return request.put('/category', ClassifyData);
}

// 删除分类的接口
export const deleteClassifyApi = (i) => {
    return request.delete('/category',{params: {	
        id:i
      }});
}

// 添加分类的接口
export const addClassifyApi = (ClassifyData) => {
    return request.post('/category', ClassifyData);
}